package com.mt.checkerin;

import org.apache.http.message.BasicHeader;

import com.mt.checkerin.model.PageForm;
import com.mt.checkerin.model.WebSite;

public class IBianQuLogin {
	
	public String login() {
		String loginCookie = "safedog-flow-item=96C0CFC2AE48D7907EAC5D351D1D644A; pgv_si=s5072880640; PZ7i_2132_saltkey=xx3A36CP; PZ7i_2132_lastvisit=1428326011; PZ7i_2132_seccode=2882.25c3bab548e3ce3497; PZ7i_2132_ulastactivity=06afOJ0eeXima1%2BWlYzcRCGuyqlJpiVQA42RfAjPpBKGwk9lw1EX; PZ7i_2132_auth=f0fcUbKCUVM6jx2U9NvOYMIUWKJgI8lEqqikDTBO8vXQexMdV5BXLB1L5zkEuWoBoWTkqYd2RCj%2Fmvl1co1nAwIu; PZ7i_2132_lastcheckfeed=5414%7C1428331790; PZ7i_2132_lip=101.244.21.24%2C1428329219; PZ7i_2132_security_cookiereport=d3b3fm8YBOxopkdC3d9IDs%2B3f0THN7po7qcudK4MpWS7epVkPBY6; ad_play_index=43; PZ7i_2132_sendmail=1; tjpctrl=1428333599263; PZ7i_2132_sid=FHc1K0; pgv_pvi=8893355972; pgv_info=ssi=s3761512671; a4737_pages=33; a4737_times=3; PZ7i_2132_lastact=1428331837%09home.php%09spacecp; PZ7i_2132_connect_is_bind=0; PZ7i_2132_checkpm=1";
        WebSiteVistor wsv = new WebSiteVistor();
        String url = "http://ibianqu.com/home.php?mod=spacecp";
		PageForm form = new PageForm();
		form.setUrl(url);
		WebSite site = new WebSite();
		site.getFormLst().add(form);
		site.getHeaderLst().add(new BasicHeader("Cookie", loginCookie));
		
		return null;
	}
	
}
